<template>
  <a-card :bordered="false">
    <a-card title="服务信息">
      <p>标题：{{title}}</p>
      <p>关键字：{{keywords}}</p>
      <p>描述：{{description}}</p>
    </a-card>
  </a-card>
</template>

<script>
export default {
  data(){
    return{
      title:"",
      keywords:"",
      description:""
    }
  },
  mounted(){
    this.getWebInfo()
  },
  methods:{
    getWebInfo(){
      this.$http.get('/myauth/web/getWebInfo').then(resJson => {
        if (resJson.success) {
          if(resJson.result.title){
            this.title = resJson.result.title
          }
          if(resJson.result.keywords){
            this.keywords = resJson.result.keywords
          }
          if(resJson.result.description){
            this.description = resJson.result.description
          }
          
        } else {
          this.$message.error(resJson.msg)
        }
      })
    }
  }
}
</script>